package com.threeti.jiayusms.domain.service.communicationtime;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.threeti.jiayusms.domain.model.CommunicationTime;
import com.threeti.jiayusms.infrastructure.communicationtime.CommunicationTimeDao;

@Service
@Transactional
public class CommunicationTimeUpdateServiceImpl implements CommunicationTimeUpdateService {
	@Autowired
	private CommunicationTimeDao dao;

	@Override
	public CommunicationTime storeCommunicationTime(CommunicationTime communicationTime) {
		return dao.store(communicationTime);
	}

	@Override
	public void removeCommunicationTimeBy(Long timeTemplateId) {
		dao.removeBy(timeTemplateId);
	}
}
